package com.example.demo.dto.system;

import com.example.demo.common.page.PageRequest;

import java.util.HashMap;
import java.util.Map;

/**
 * 用户查询DTO
 */
public class UserQueryDTO extends PageRequest {
    private static final long serialVersionUID = 1L;

    /** 用户名 */
    private String username;
    
    /** 昵称 */
    private String nickname;
    
    /** 邮箱 */
    private String email;
    
    /** 手机号 */
    private String phone;
    
    /** 状态 */
    private Integer status;
    
    /** 系统编码 */
    private String systemCode;
    
    /** 动态字段查询条件，key为字段标识，value为查询值 */
    private Map<String, Object> dynamicFields = new HashMap<>();

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getSystemCode() {
        return systemCode;
    }

    public void setSystemCode(String systemCode) {
        this.systemCode = systemCode;
    }

    public Map<String, Object> getDynamicFields() {
        return dynamicFields;
    }

    public void setDynamicFields(Map<String, Object> dynamicFields) {
        this.dynamicFields = dynamicFields;
    }
    
    public void addDynamicField(String key, Object value) {
        this.dynamicFields.put(key, value);
    }
} 